<?php 

var_dump(is_writable('./test.php'));

var_dump(is_readable('./test.php'));

var_dump(filesize('./test.php'));

var_dump(fileatime('./test.php'));
var_dump(filectime('./test.php'));
var_dump(filemtime('./test.php'));

// $data = file_get_contents('./test.php');


include './db.php';


var_dump($arr);


exit;

$arr = [];

for ($i=0; $i <100 ; $i++) { 
	$data['name']= 'xuebing'.$i;
	$data['sex']= '男'.$i;
	$arr[] = $data;
}

$str = var_export($arr,true);

$str = '<?php $arr = '.$str ." ?>";

file_put_contents('./db.php',$str);










 ?>